home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
User's Choice Windows CD
/
User's Choice Windows CD (CMS Software)(1993).iso
/
win_a_d
/
diskroot.zip
/
STFSETUP.IN_
< prev
next >
Wrap
Text File
|
1992-03-12
|
13KB
|
421 lines
;
; Setup script for the Windows Resource Kit for the
; Microsoft Windows Operating System version 3.1
; Copyright (c) Microsoft Corp. 1992
;
[Shell Commands]
read-syms "General Variables"
set-title $(PACKAGETITLE)
detect "Detect Variables"
welcome = read-syms "Welcome Variables"
ui start INFO3
ui pop 1
ifstr $(DLGEVENT) == "CONTINUE"
; fall through
else ;; $(DLGEVENT) == "EXIT"
set CurrentDialog = "welcome"
goto "quit"
endif
get-dest = read-syms "Get Dest Variables"
set GetPTitle = $(PACKAGETITLE)
set EditTextIn = $(DEST)
set EditFocus = "END"
ui start GETPATH
ifstr $(DLGEVENT) == "CONTINUE"
ui pop 1
else-ifstr $(DLGEVENT) == "BACK"
ui pop 1
goto "welcome"
else ;; $(DLGEVENT) == "EXIT"
set CurrentDialog = "get-dest"
goto "quit"
endif
set DEST = $(EditTextOut)
set DEST+ = $(EditPathOut)
check-disk-space = install "Check Disk Space"
ifint $(ADDITIONALNEEDED) > 0
goto "Insufficient-Disk"
else
goto "Check-Directory"
endif
Check-Directory =+
set DIREXIST = $(DEST)
detect "Dir Exist Test"
ifstr $(DIREXISTRESULT) == "NO"
goto "Dir-Create-Prompt"
else
goto "Check-Prev-Install"
endif
Dir-Create-Prompt = read-syms "Dir Create Prompt Variables"
set InfoTitle = $(PACKAGETITLE)
ui start INFO3
ui pop 1
ifstr $(DLGEVENT) == "CONTINUE"
goto "Make-Dest-Dir"
else-ifstr $(DLGEVENT) == "BACK"
goto "get-dest"
else ;; $(DLGEVENT) == "EXIT"
set CurrentDialog = "Dir-Create-Prompt"
goto "quit"
endif
Make-Dest-Dir = install "Make Dest Dir"
ifstr $(STF_INSTALL_OUTCOME) == "STF_FAILURE"
goto "Make-Dir-Failure"
else
goto "Check-For-VBRun"
endif
Check-Prev-Install =+
set FILEEXIST = $(DEST+)"bmpview.exe"
detect "File Exist Test"
ifstr $(FILEEXISTRESULT) == "YES"
goto "Prev-Install-Found"
else
goto "Check-For-VBRun"
endif
Check-For-VBRun =+
set DOVBRUN = "YES"
; we look for vbrun100.dll in both the sysdir
; and the windir. if it is not in either then
; we copy it to the sysdir if that is a local
; disk or the windir if it is not.
set FILEEXIST = $(WinDir)"tophook.dll"
detect "File Exist Test"
ifstr $(FILEEXISTRESULT) == "YES"
set DOPROGMAN = "NO"
endif
set FILEEXIST = $(WinDir)"vbrun100.dll"
detect "File Exist Test"
ifstr $(FILEEXISTRESULT) == "YES"
set DOVBRUN = "NO"
goto "install"
endif
set FILEEXIST = $(SysDir)"vbrun100.dll"
detect "File Exist Test"
ifstr $(FILEEXISTRESULT) == "YES"
set DOVBRUN = "NO"
goto "install"
endif
; if we get here then we could not find vbrun100.dll.
; figure out where it should go.
set NETDRIVE = $(SysDir)"vbrun100.dll"
detect "Is NetDrive Test"
ifstr $(ISNETDRIVE) == "YES"
set VBRUNDEST = $(WinDir)
else
set VBRUNDEST = $(SysDir)
endif
goto "install"
Insufficient-Disk = read-syms "Insufficient Disk Variables"
set InfoTitle = $(PACKAGETITLE)
ui start INFO3
ui pop 1
ifstr $(DLGEVENT) == "CONTINUE"
goto "get-dest"
else ;; $(DLGEVENT) == "EXIT"
set CurrentDialog = "Insufficient-Disk"
goto "quit"
endif
Make-Dir-Failure = read-syms "Make Dir Failure Variables"
set InfoTitle = $(PACKAGETITLE)
ui start INFO3
ui pop 1
ifstr $(DLGEVENT) == "CONTINUE"
goto "get-dest"
else ;; $(DLGEVENT) == "EXIT"
set CurrentDialog = "Make-Dir-Failure"
goto "quit"
endif
Prev-Install-Found = read-syms "Prev Install Found Variables"
set InfoTitle = $(PACKAGETITLE)
ui start INFO3
ui pop 1
ifstr $(DLGEVENT) == "CONTINUE"
Set DOPROGMAN = "NO"
goto "Check-For-VBRun"
else-ifstr $(DLGEVENT) == "BACK"
goto "get-dest"
else ;; $(DLGEVENT) == "EXIT"
set CurrentDialog = "Prev-Install-Found"
goto "quit"
endif
install = install "Install Script"
ifstr $(STF_INSTALL_OUTCOME) == "STF_SUCCESS"
read-syms "Exit-Success Message Variables"
else-ifstr $(STF_INSTALL_OUTCOME) == "STF_USERQUIT"
read-syms "Exit-UserQuit Message Variables"
else ;; $(STF_INSTALL_OUTCOME) == "STF_FAILURE"
read-syms "Exit-Failure Message Variables"
endif
ui start INFO1
ui pop 1
exit
quit = ui start QUIT
ifstr(i) $(DLGEVENT) == "CONTINUE"
ui pop 1
goto $(CurrentDialog)
else
exit
endif
[Source Media Descriptions]
1 = "Windows Resource Kit Disk", TAGFILE = bmpview.ex$
[WRK Files]
; in Check-Prev-Install one of these files needs to be added as the
; file name for which to check.
1, BMPVIEW.EX$, DATE=$(DATESTR), RENAME=BMPVIEW.EXE, SIZE=147340
1, 31README.WR$, DATE=$(DATESTR), RENAME=31README.WRI, SIZE=99584
1, 3270.WR$, DATE=$(DATESTR), RENAME=3270.WRI, SIZE=15360
1, COMMQA.WR$, DATE=$(DATESTR), RENAME=COMMQA.WRI, SIZE=29952
1, LAYOUTS.WR$, DATE=$(DATESTR), RENAME=LAYOUTS.WRI, SIZE=36096
1, MOUSEQA.WR$, DATE=$(DATESTR), RENAME=MOUSEQA.WRI, SIZE=46208
1, NETAPP.EX$, DATE=$(DATESTR), RENAME=NETAPP.EXE, SIZE=45059
1, NETWORKS.WR$, DATE=$(DATESTR), RENAME=NETWORKS.WRI, SIZE=68096
1, PRINTERS.WR$, DATE=$(DATESTR), RENAME=PRINTERS.WRI, SIZE=44928
1, README.WR$, DATE=$(DATESTR), RENAME=README.WRI, SIZE=24576
1, SMARTMON.EX$, DATE=$(DATESTR), RENAME=SMARTMON.EXE, SIZE=28160
1, SMARTMON.HL$, DATE=$(DATESTR), RENAME=SMARTMON.HLP, SIZE=11550
1, SYSINI.WR$, DATE=$(DATESTR), RENAME=SYSINI.WRI, SIZE=198912
1, SYSMETER.EX$, DATE=$(DATESTR), RENAME=SYSMETER.EXE, SIZE=36660
1, SYSMETER.HL$, DATE=$(DATESTR), RENAME=SYSMETER.HLP, SIZE=16395
1, T2HINTS.WR$, DATE=$(DATESTR), RENAME=T2HINTS.WRI, SIZE=7808
1, TD_TUTOR.EX$, DATE=$(DATESTR), RENAME=TD_TUTOR.EXE, SIZE=352896
1, TOPDESK.EX$, DATE=$(DATESTR), RENAME=TOPDESK.EXE, SIZE=77176
1, TOPDESK.HL$, DATE=$(DATESTR), RENAME=TOPDESK.HLP, SIZE=26922
1, VIDEOQA.WR$, DATE=$(DATESTR), RENAME=VIDEOQA.WRI, SIZE=30336
1, WININI.WR$, DATE=$(DATESTR), RENAME=WININI.WRI, SIZE=129152
[VBRun Files]
1, VBRUN100.DL$, DATE=$(DATESTR), RENAME=VBRUN100.DLL, SIZE=271264
[File Size Files]
1, FILESIZE.DL$, DATE=$(DATESTR), RENAME=FILESIZE.DLL, SIZE=12448
1, TOPHOOK.DL$, DATE=$(DATESTR), RENAME=TOPHOOK.DLL, SIZE=8697
[Check Disk Space]
AddSectionFilesToCopyList "WRK Files" $(STF_SRCDIR) $(DEST)
AddSectionFilesToCopyList "File Size Files" $(STF_SRCDIR) $(WinDir)
; we can use the windir as the dest for the check because
; we will only copy to our disk if local, and even if it
; ends up going in the sysdir that will only happen if the
; sysdir is a subdir of the windir.
AddSectionFilesToCopyList "VBRun Files" $(STF_SRCDIR) $(WinDir)
SetupGetCopyListCost FREEPERDISK CLPERDISK TOTALFREE
; This will set ADDITIONAL NEEDED to the amnt missing if not enough.
set EXTRACOSTS = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}
GetCopyListCost ADDITIONALNEEDED TOTALFREE TOTALNEEDED FREEPERDISK CLUSTERS +
TROUBLEPAIRS NEEDEDPERDISK EXTRACOSTS
ClearCopyList
exit
[Make Dest Dir]
CreateDir $(DEST)
exit
[Install Script]
AddSectionFilesToCopyList "WRK Files" $(STF_SRCDIR)"WRK" $(DEST)
AddSectionFilesToCopyList "File Size Files" $(STF_SRCDIR)"WRK" $(WinDir)
ifstr $(DOVBRUN) == "YES"
AddSectionFilesToCopyList "VBRun Files" $(STF_SRCDIR)"WRK" $(VBRUNDEST)
endif
CopyFilesInCopyList
ClearCopyList
ifstr $(DOPROGMAN) != "NO"
; add the program group and contents.
CreateProgManGroup "Windows Resource Kit" ""
ShowProgManGroup "Windows Resource Kit" 1
CreateProgManItem "Windows Resource Kit" "Graphics Viewer" $(DEST+)"bmpview.exe"
CreateProgManItem "Windows Resource Kit" "Network Assistant" $(DEST+)"netapp.exe"
CreateProgManItem "Windows Resource Kit" "SMARTDrive Monitor" $(DEST+)"smartmon.exe"
CreateProgManItem "Windows Resource Kit" "System Resource Monitor" $(DEST+)"sysmeter.exe"
CreateProgManItem "Windows Resource Kit" "TopDesk" $(DEST+)"topdesk.exe"
CreateProgManItem "Windows Resource Kit" "TopDesk Tour" $(DEST+)"td_tutor.exe"
CreateProgManItem "Windows Resource Kit" "Read Me" $(DEST+)"readme.wri"
endif
; setup the file size extension.
set INI = $(WinDir)"winfile.ini"
CreateIniKeyValue $(INI) "AddOns" "File Size Extension" $(WinDir)"FILESIZE.DLL" O
exit
[General Variables]
DATESTR = 1992-04-06
ContBut = "&Continue"
ExitBut = "E&xit"
BackBut = "&Back"
HelpBut = "&Help"
PACKAGETITLE = "Windows Resource Kit"
HelpTitle = "Windows Resource Kit Setup Help"
HContBut = "&OK"
QuitTitle = "Exit Resource Kit Setup"
QuitText1 = "\nThe Setup process is not complete. If you exit now,
the Windows Resource Kit software may not be completely installed."
QContBut = "&Resume"
QExitBut = "E&xit"
GetPLabel = "&Path:"
GetPathMessBoxTitle = "Windows Resource Kit Path Error"
GetPathMessBoxText = "The path you entered is not a valid pathname."
DEST = C:\\WRK ;; default for destination dir
DEST+ = C:\\WRK\\ ;; synchronized with $(DEST) but ends in slash
[Detect Variables]
WinDir = "C:\WINDOWS\" ? DETCMD.DLL,GetWindowsDir
SysDir = "C:\WINDOWS\SYSTEM\" ? DETCMD.DLL, GetWindowsSysDir
WinVer = {3,10} ? DETCMD.DLL, GetWindowsVersion
[File Exist Test]
FILEEXISTRESULT = "NO" ? DETCMD.DLL, DoesFileExist $(FILEEXIST)
[Dir Exist Test]
DIREXISTRESULT = "NO" ? DETCMD.DLL, DoesDirExist $(DIREXIST)
[Is NetDrive Test]
ISNETDRIVE = "NO" ? DETCMD.DLL, IsDriveANetwork $(NETDRIVE)
[Search EnvVar]
ENVSEARCHRESULT = "" ? DETCMD.DLL, FindTargetOnEnvVar $(SEARCHFILE) $(SEARCHPATH)
[Welcome Variables]
InfoTitle = "Windows Resource Kit Welcome"
InfoText1 = "Welcome to the Microsoft Windows Resource Kit.
\n\nThis setup program installs the Windows Resource Kit software
on your machine.
\n\n\nPress Continue to begin the setup process,\nor Exit to Quit."
HelpText1 = "\n\nThis program will install the Windows Resource Kit on a drive and
directory of your choosing."
STF_BACK_ENABLED = "NO"
[Get Dest Variables]
GetPText1 = "Setup will copy the Windows Resource Kit software to the
following directory:"
GetPText2 = "Choose Continue to accept this directory, or change the directory to the
location that you prefer and then choose Continue."
HelpText1 = "Specifiy the Drive and Directory where you wish to copy
the Windows Resource Kit. For instance, if you want to
put the files on your D drive in the WRK directory, enter
D:\WRK."
STF_BACK_ENABLED = "NO"
[Dir Create Prompt Variables]
InfoText1 = "\n\nThe directory you selected does not currently exist.
Choose Continue to create the directory, or Back to
select a new directory."
HelpText1 = "If the directory you entered is correct, choose Continue
to complete setup. If you wish to change this directory
choose Back to return to the prompt."
STF_BACK_ENABLED = "YES"
[Insufficient Disk Variables]
InfoText1 = "The disk you selected does not have enough space for
the software.
The Windows Resource Kit requires 1.5 MB free on
your destination drive and 550K free on your Windows drive.
\n\nChoose Continue to select a different path, or
Exit to quit setup."
HelpText1 = "If you have another drive, choose CONTINUE and specify a directory
on that drive. If setup still fails, verify you have at least
550K free on the drive where Windows is installed."
STF_BACK_ENABLED = "NO"
[Make Dir Failure Variables]
InfoText1 = "Setup was unable to create the specified directory.
\n\nChoose Continue to select a different path, or
Exit to quit setup."
HelpText1 = "Help text for the Make Dir Failure Dlg."
STF_BACK_ENABLED = "NO"
[Prev Install Found Variables]
InfoTitle = $(PACKAGETITLE)
InfoText1 = "Setup has detected a previous installation of this software
at the specified location.
\n\nChoose Continue to overwrite the existing installation,
or Back to select a different path."
HelpText1 = "If you wish to overwrite the files on your harddisk with the
files included on the floppy disk, choose CONTINUE. If you
do not wish to overwrite these files, choose BACK to change
the directory."
STF_BACK_ENABLED = "YES"
[Exit-Success Message Variables]
InfoTitle = "Windows Resource Kit Setup Complete"
InfoText1 = "\n\nWindows Resource Kit Setup has completed. To use the
Utilities, open the Windows Resource Kit group in Program
Manager and double-click the icon representing the utility
you wish to use."
ContBut = "E&xit"
STF_BACK_ENABLED = "NO"
[Exit-UserQuit Message Variables]
InfoTitle = $(QuitTitle)
InfoText1 = "\nThe Windows Resource Kit has not been properly installed.
You should allow the Setup program to run to completion
to properly install the Windows Resource Kit software."
ContBut = "E&xit"
STF_BACK_ENABLED = "NO"
[Exit-Failure Message Variables]
InfoTitle = "Windows Resource Kit Setup Error"
InfoText1 = "\n\nWindows Resource Kit Setup has failed!"
ContBut = "E&xit"
STF_BACK_ENABLED = "NO"